package com.ms.service.module.analysisgroup.async;

import java.util.ArrayList;

import com.ms.service.module.analysisgroup.db.AnalysisGroupDAO;
import com.ms.service.module.analysisgroup.db.model.ItemChangeCountModel;
import com.xpec.c4.service.module.task.TaskAsyncCommand;

public class SaveItemChangeCountAsync extends TaskAsyncCommand{

	private ArrayList<ItemChangeCountModel> itemChangeCountModels;
	
	public void setItemChangeCountModels(ArrayList<ItemChangeCountModel> itemChangeCountModels) {
		this.itemChangeCountModels = itemChangeCountModels;
	}

	@Override
	public void asyncExecute() throws Exception {
		if(itemChangeCountModels != null)
			AnalysisGroupDAO.getInstance().saveItemChangeCountModels(itemChangeCountModels);
	}

	@Override
	public void execute() throws Exception {
		
	}

}
